package models

type SysMajor struct {
	ID int `json:"id" gorm:"primary key;not null;unique"`
	Name string `json:"name"`
	Level string `json:"level" gorm:"type:enum('本科','硕士')"`
	DepartmentID int `json:"department_id"`
	Department SysDepartment `gorm:"ForeignKey:DepartmentID;AssociationForeignKey:ID" json:"department"`
}
